OnOffItem

Section: ET++ class description (n)
Updated: automatically Thu Mar 21 20:12:50 1991
Index Return to Main Contents
 

NAME

OnOffItem.short - a two-state button with graphic images  

DESCRIPTION

The OnOffItem implements a two-state button with user-definable bitmaps. The bitmaps are drawn if the state of the button is on, respectively off.
The OnOffItem sends its id, the part code cPartToggle and its current state via Control to its next event handlers when it is selected. An OnOffItem may also be controlled by an EnumItem.
There are also two subclasses, the class RadioButton and the class ToggleButton, that implement buttons with fixed bitmaps.


classes are rarely derived from OnOffItem.
class OnOffItem is sometimes reused directly.
class OnOffItem is abstract.
class OnOffItem contains 10 methods.

owner of class:
nobody.
baseclasses:
Button
subclasses:
RadioButton, ToggleButton
flags:
ButtonFlags

 

INSTANCE VARIABLES

highlight (protected Bitmap *)
This bitmap is intended to be drawn as selection feedback but is actually not used.

off (protected Bitmap *)
This bitmap is drawn when the state of the button is off. It must not be NULL.

on (protected Bitmap *)
This bitmap is drawn when the state of the button is on. It must not be NULL.

state (protected bool)
the current state of the button. It is accessible through the method GetValue and the method SetState.

 

INSTANCE METHOD LIST

client interface
GetValue
OnOffItem
SetState

implementation
Base
DoOnItem
Draw
GetMinSize
PrintOn
ReadFrom
SendDown

 

CATEGORIES

Simple Dialog Items

 

FILES

declaration:
Buttons.h

 

HISTORY

joe@csesbg.at  Fri Sep 06 12:10 1991 MET DST


 

Index

NAME
DESCRIPTION
INSTANCE VARIABLES
INSTANCE METHOD LIST
CATEGORIES
FILES
HISTORY

This document was created by man2html, using the manual pages.
Time: 00:40:25 GMT, March 30, 2022